package com.xbongbong.pro.common.pojo.dto;

import com.xbongbong.paas.toolbox.util.StringUtil;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/4/1 15:40
 * @since v1.0
 */
@Getter
@Setter
public class CustomerCheckRepeatDTO extends BaseDTO {
    @NotNull(message = "{dto.msg.customerCheckRepeat.nameLike.NotNull}")
    @Size(min = 1,message = "{dto.msg.customerCheckRepeat.nameLike.Size}")
    private String nameLike;
    private Integer rule;

    /**
     * 是否开启了工作流
     */
    private Boolean isOpenWorkflow;

    public String getNameLike() {
        return StringUtil.trim(nameLike);
    }
}
